package cn.edu.ysu.zry.entity;

/**
 * @program: XieyiBlockChainOS
 * @description: 重节点信息
 * @author: Ruiyuan Zhang
 * @create: 2020-04-21 10:53
 */
public class ZhongJiedian {
    // 公钥
    private byte publicKey[];
    // ip地址
    private String ip;
    // 端口号
    private int port;
    // 权限授予的时间，默认权限收回的时间为一个小时之后
    private long time;

    /** getter and setter **/
    public byte[] getPublicKey() {
        return publicKey;
    }

    public void setPublicKey(byte[] publicKey) {
        this.publicKey = publicKey;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }
}
